package com.fingard.dsp.bank.reqrespobj.certificatemailmsg;


import java.util.List;
import java.util.Map;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.xml.XmlTextReader;

public class ReqCertificateMailedMsgQry extends RequestBase {
    //接入机构号
    public String CHANNEL_CODE="";
    //经销商代码
    public String DealerCode="";
    //经销商名称
    public String DealerName="";
    //总笔数
    public String Z_BISHU="";
    //邮寄单号
    public String MailNo="";
    //快递公司名称
    public String MailCompanyName="";
    //邮寄数量
    public String MailNum="";
    //邮寄时间
    public String MailTime="";
    //车架号
    public String VIN="";
    //合格证号
    public String CertificationNo="";
    //合格证对应的订单号
    public String OrderCode="";
    //寄件人
    public String MailMan="";
    //寄件人电话
    public String MailTel="";
    //邮寄时间
    public String MailDate="";
    //邮寄地址
    public String TakeAddress="";
    //累计邮寄金额
    public String SumMailAmount="";
    //是否全部邮寄 0：否，1：是
    public String IsAllMail="";
    //单据号
    public String BillNo="";
    //预留字段1
    public String Reserve1="";
    //预留字段2
    public String Reserve2="";
    //预留字段3
    public String Reserve3="";
    
    private XmlTextReader xmlReader;

    public ReqCertificateMailedMsgQry(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception {
        reqHeader = p_header;
        xmlReader = p_xmlReader;
        CHANNEL_CODE = xmlReader.getSimpleText("CHANNEL_CODE");
        DealerCode = xmlReader.getSimpleText("DealerCode");
        DealerName = xmlReader.getSimpleText("DealerName");
        Z_BISHU = xmlReader.getSimpleText("Z_BISHU");
        MailNo = xmlReader.getSimpleText("MailNo");
        MailCompanyName = xmlReader.getSimpleText("MailCompanyName");
        MailNum = xmlReader.getSimpleText("MailNum");
        MailTime = xmlReader.getSimpleText("MailTime");
        VIN = xmlReader.getSimpleText("VIN");
        CertificationNo = xmlReader.getSimpleText("CertificationNo");
        OrderCode = xmlReader.getSimpleText("OrderCode");
        MailMan = xmlReader.getSimpleText("MailMan");
        MailTel = xmlReader.getSimpleText("MailTel");
        MailDate = xmlReader.getSimpleText("MailDate");
        TakeAddress = xmlReader.getSimpleText("TakeAddress");
        SumMailAmount = xmlReader.getSimpleText("SumMailAmount");
        IsAllMail = xmlReader.getSimpleText("IsAllMail");
        BillNo = xmlReader.getSimpleText("BillNo");
        Reserve1 = xmlReader.getSimpleText("Reserve1");
        Reserve2 = xmlReader.getSimpleText("Reserve2");
        Reserve3 = xmlReader.getSimpleText("Reserve3");
    }
    
    public ReqCertificateMailedMsgQryDetail reqDetail;
    public boolean readRecord() throws Exception{
    	reqDetail = null;
        if(xmlReader.read(PATH_Detail)){
        	reqDetail = new ReqCertificateMailedMsgQryDetail(xmlReader.readedXElement);
            return true;
        }
        else{
            return false;
        }
    }
}
